#include <iostream>
#include "namespace2.hpp"  // Include the header file that defines ns2

void func_default();

namespace ns1 {
    int x = 1;

    void print() {
        std::cout << "Hello from first namespace" << std::endl;

        ::func_default();
    }
}

void func_default() {
    std::cout << "Hello from default namespace" << std::endl;
}

// using ns1::print;
using namespace ns1;
using namespace ns2;

int main() {

    ns1::print();
    ns2::print();
    std::cout << ns1::x << std::endl;
    std::cout << ns2::x << std::endl;
    // print();
}